package com.zhuiyun.project.api.weightchangetable.mapper;

import com.zhuiyun.project.api.weightchangetable.model.SelectUserChangeBmiModel;
import com.zhuiyun.project.api.weightchangetable.model.SelectUserWeightChangeTableModel;
import com.zhuiyun.project.api.weightchangetable.model.WeightChangeTableModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName WeightChangeTableMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/11/29 9:58
 **/
@Mapper
public interface WeightChangeTableMapper {
    /*
    * @Author wuwan
    * @Description 添加到体重变化记录表
    * @Date 2023/11/29 14:10
    * @Return
    */
    Integer addWeightChangeTable(WeightChangeTableModel weightChangeTableModel);
    /*
    * @Author wuwan
    * @Description 查询所有体重变化
    * @Date 2023/11/29 14:10
    * @Return
    */
    List<SelectUserWeightChangeTableModel> selectUserWeightChangeTable(Integer uid);
    /*
    * @Author wuwan
    * @Description 查询用户的体重 体脂率 BMI
    * @Date 2023/11/29 14:10
    * @Return
    */
    SelectUserChangeBmiModel selectUserChangeBmi(Integer uid);
}
